<template>
  <div>
    <swiper autoplay indicator-dots='true' indicator-color="rgba(0, 0, 0, .3)" indicator-active-color="white" >
      <swiper-item v-for="(value,index) in imgList" :key="index">
        <img :src="value" class="slide-image" mode="aspectFill"/>
      </swiper-item> 
    </swiper>
  </div>
</template>

<script>
export default {
  props:{
    imgList:{
      type:Object,
      default:[]
    }
  },
  data(){
    return {

    }
  },
  methods:{
    toGoodsDetail(id){
      // wx.navigateTo({url:'/pages/cart/main'})
      console.log(id)
    }
  }
}
</script>

<style scoped>
swiper{height: 375px;}
.slide-image{width: 100%;height: 375px;}

</style>
